<?php
/**
 * exception for data model...
 * contains the object and more...
 *
 * @author bbqq <toughgamer@gmail.com>
 * @package com.blib.data
 * @copyright bbqq qstufie.com
 */
class Blib_Exception_Model extends Blib_Exception
{
	/**
	 * the dead class...
	 *
	 * @var Blib_Data_Model_Base
	 */
	private $_class = null;


	/**
	 * the input
	 * @var mixed
	 */
	private $_input = null;


    /**
     * constructor
     *
     * @return void
     */
	public function __construct($model, $input = null, $message = 'Model Exception', $code = 0)
	{
		$this->_class = $model;
		$this->_input = $input;

		parent::__construct($message, $code);

	}// end __construct


	/**
	 * get input
	 *
	 * @return mixed
	 */
	public function getInput()
	{
		return $this->_input;

	}// end getInput


    /**
     * get model
     *
     * @return Blib_Data_Model_Base
     */
    public function getModel()
    {
        return $this->_class;

    }// end getModel


}// end Blib_Exception_Model
?>